<div id="content" class="inputForm">
	<?php
		include_once '../com/mss/action/LoginAction.php';
		
		$login_id = "";
		$password = "";
		
		if (isset($_POST['submit'])) {
			$login_id = $_POST['login_id'];
			$password = $_POST['password'];
			
			$login_action = new LoginAction();
			$errors = $login_action->login($login_id, $password);
		}
	?>
	<h4>Login</h4>
	<?php 
	if (isset($errors['success'])) {
		include_once 'info.php';
	}
	?>
	<fieldset>
	<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
		<table class="inputFormTable">
			<tr>
				<td><label>Login ID</label><span class="required">*</span></td>
				<td><input type="text" name="login_id" width="200px;" value="<?php echo $login_id?>" /></td>
			</tr>
			<tr>
				<td><label>Password</label><span class="required">*</span></td>
				<td><input type="password" name="password" width="200px;" value="<?php echo $password?>" /></td>
			</tr>
			<tr>
				<td></td>
				<td align="right"><input type="submit" name="submit" value="Login" class="formbutton" align="right"/></td>
			</tr>
		</table>
	</form>
	</fieldset>
	<br><br>
</div>
